﻿
namespace HSS.Xaml.UI.Controls
{
	#region Using Directives
	using System.Windows;

	#endregion

	#region PropertyGridError
	/// <summary>
	/// PropertyGridError window
	/// </summary>
	public partial class PropertyGridError
	{
		#region Constructors
		/// <summary>
		/// Constructor
		/// </summary>
		public PropertyGridError()
		{
			if (!System.ComponentModel.DesignerProperties.IsInDesignTool)
				throw new System.Exception();
		}
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="error"></param>
		public PropertyGridError(string error)
		{
			InitializeComponent();
			this.txbMessage.Text = error;
		}
		#endregion

		#region Event Handler
		[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
		private void OKButton_Click(object sender, RoutedEventArgs e)
		{
			this.DialogResult = true;
		}
		#endregion
	}
	#endregion
}

